package com.ireadyit.domain;




import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


import java.math.BigDecimal;
import java.util.Date;

/**
 * 车票管理对象 bus_order
 *
 * @author yuanhaowei
 * @date 2021-02-07
 */
@Getter
@Setter
@TableName("bus_order")
@ToString
public class Ticket {
    private static final long serialVersionUID = 1L;

    /**
     * 订单主键
     */
    @TableId("order_id")
    private Long orderId;

    /**
     * 用户id
     */
    private Long orderUserId;

    /**
     * 订单金额
     */
    private BigDecimal orderMoney;

    /**
     * 支付状态
     */
    private Integer orderPayState;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderTime;

    /**
     * 支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderPayTime;

    /**
     * 订单备注
     */
    private String orderDescription;

    /**
     * 订票人姓名
     */
    private String orderUserName;
}
